package cn.software.util;

public enum ResultEnum {
    SUCCESS(200),FAIL_DEFAULT(300), FAIL_SUBJECT_NOT_EXIST(301, "科目不存在"),FAIL_TIME(303,"考试时间冲突"),
    FAIL_NOT_STARTED(305, "考试未开始"), FAIL_TEST_ENDED(307, "考试已结束");

    int code;
    String msg;

    ResultEnum(int code) {
        this.code = code;
    }

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
